import { configureStore } from '@reduxjs/toolkit';
import todosReducer from './todos/todosSlice';

// 配置Redux store
const store = configureStore({
  reducer: {
    todos: todosReducer,
  },
});

// 导出store的类型定义
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;

// 导出store
export default store;